package com.sk.helper.utils;

public class Protocol
{
  public static final int CENTER_AXIS = 128;
  public static final byte CMD_DEVICE_CONNECTED_COUNT = 99;
  public static final byte CMD_KEYEVENT = 1;
  public static final byte CMD_KEY_NOTIFY = 17;
  public static final byte CMD_MODE_QUERY = 36;
  public static final byte CMD_MODE_SET = 37;
  public static final byte CMD_MOTOR = 2;
  public static final byte CMD_OTA = 9;
  public static final byte CMD_OTA_CONTENT = 10;
  public static final byte CMD_SET_NAME = 16;
  public static final byte CMD_SPP_OFF = 0;
  public static final byte CMD_SPP_ON = 8;
  public static final byte CMD_STATE_QUERY = 3;
  public static final byte CMD_STATE_RESULT = 5;
  public static final byte CMD_STATE_SET = 4;
  public static final byte CMD_UUID_QUERY = 19;
  public static final byte CMD_UUID_RESULT = 20;
  public static final byte CMD_VERSION_QUERY = 6;
  public static final byte CMD_VERSION_RESULT = 7;
  public static final int COMMAND_HEADER_SIZE = 5;
  public static final int HEADER_G = 71;
  public static final int HEADER_N = 78;
  public static final byte INDEX_HEADER_0 = 0;
  public static final byte INDEX_HEADER_1 = 1;
  public static final byte INDEX_KEY_A = 7;
  public static final byte INDEX_KEY_B = 8;
  public static final byte INDEX_KEY_BASE = 5;
  public static final byte INDEX_KEY_EXT = 6;
  public static final byte INDEX_KEY_L1 = 11;
  public static final byte INDEX_KEY_L2 = 13;
  public static final byte INDEX_KEY_R1 = 12;
  public static final byte INDEX_KEY_R2 = 14;
  public static final byte INDEX_KEY_X = 9;
  public static final byte INDEX_KEY_Y = 10;
  public static final byte INDEX_LEFTSTICK_X = 15;
  public static final byte INDEX_LEFTSTICK_Y = 17;
  public static final byte INDEX_PACKAGE_SIZE = 3;
  public static final byte INDEX_PACKAGE_TYPE = 4;
  public static final byte INDEX_RIGHTSTICK_X = 19;
  public static final byte INDEX_RIGHTSTICK_Y = 21;
  public static final byte INDEX_VERSION = 2;
  public static final int MAX_PRESSURE = 255;
  public static final int VERSION = 1;

  public static final int KEYCODE_BUTTON_A = 96;
  public static final int KEYCODE_BUTTON_B = 97;
  public static final int KEYCODE_BUTTON_HELP = 198;
  public static final int KEYCODE_BUTTON_KEYBOARD = 199;
  public static final int KEYCODE_BUTTON_L1 = 102;
  public static final int KEYCODE_BUTTON_L2 = 104;
  public static final int KEYCODE_BUTTON_R1 = 103;
  public static final int KEYCODE_BUTTON_R2 = 105;
  public static final int KEYCODE_BUTTON_START = 108;
  public static final int KEYCODE_BUTTON_BACK = 4;
  public static final int KEYCODE_BUTTON_THUMBL = 106;
  public static final int KEYCODE_BUTTON_THUMBR = 107;
  public static final int KEYCODE_BUTTON_X = 99;
  public static final int KEYCODE_BUTTON_Y = 100;
  public static final int KEYCODE_DPAD_DOWN = 20;
  public static final int KEYCODE_DPAD_LEFT = 21;
  public static final int KEYCODE_DPAD_RIGHT = 22;
  public static final int KEYCODE_DPAD_UP = 19;
  public static final int KEYCODE_LEFT_STICK = 200;
  public static final int KEYCODE_RIGHT_STICK = 201;
  public static final int KEYDOWN = 0;
  public static final int KEYUP = 1;

  public static final int MESSAGE_KEY = 1;
  public static final int MESSAGE_LR = 2;

  public static int arrayList[] = {KEYCODE_DPAD_UP,KEYCODE_DPAD_DOWN,KEYCODE_DPAD_LEFT,KEYCODE_DPAD_RIGHT,
          KEYCODE_BUTTON_START,KEYCODE_BUTTON_BACK,KEYCODE_BUTTON_THUMBL,KEYCODE_BUTTON_THUMBR,
          KEYCODE_BUTTON_HELP,KEYCODE_BUTTON_KEYBOARD,KEYCODE_BUTTON_A,KEYCODE_BUTTON_B,KEYCODE_BUTTON_X,
          KEYCODE_BUTTON_Y,KEYCODE_BUTTON_L1,KEYCODE_BUTTON_R1,KEYCODE_BUTTON_L2,KEYCODE_BUTTON_R2,
          KEYCODE_LEFT_STICK,KEYCODE_RIGHT_STICK};

}
